const path = require("path");
const filePath= path.join(__dirname, "grade.txt");
console.log("完整路径",path.join(__dirname, "grade.txt"));
console.log("文件名", path.basename(filePath));
console.log("扩展名",path.extname(filePath));